/* 统一导航栏样式 */
.navbar {
    margin-bottom: 0;
    background-color: #2d2d30;
    border: 0;
    font-size: 18px;
    letter-spacing: 0.5rem !important;
    opacity: 0.95;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-brand {
    padding: 0;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar .navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-item .nav-link {
    color: #d5d5d5 !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .navbar-nav .nav-item .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-item .nav-link:hover:after,
.navbar .navbar-nav .nav-item.active .nav-link:after {
    width: 100%;
}

.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link:active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar .navbar-nav .nav-item.active .nav-link {
    color: #fff !important;
    font-weight: bold;
}

.dropdown-menu {
    background-color: #373737;
    border: none;
    border-radius: 0;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #d5d5d5 !important;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* 全屏轮播图样式 */
.carousel {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
    transition: transform 1s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
}

/* 调整轮播控制按钮位置 */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
}

/* 轮播指示器样式 */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 轮播文字样式 - 固定在底部 */
.carousel-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding: 30px;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.carousel:hover .carousel-caption {
    transform: translateY(-10px);
}

.carousel-caption h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移除默认的body边距 */
body {
    padding-top: 70px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* 主要角色页面样式 */
.container {
    padding: 80px 120px;
}

.person {
    border: 10px solid transparent;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.person:hover {
    border-color: #f1f1f1;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.character-card {
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.character-card p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.character-card strong {
    font-size: 1.5rem;
    color: #2d2d30;
}

.collapse {
    transition: all 0.5s ease;
}

/* 故事背景页面样式 */
.bg-1 {
    background: linear-gradient(135deg, #2d2d30 0%, #1a1a1d 100%);
    color: #bdbdbd;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-1:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.bg-1 h3 {
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.bg-1 h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

.bg-1 p {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.list-group-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    border-radius: 5px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.card {
    padding: 0 0 15px 0;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card p {
    margin-top: 15px;
    color: #555;
}

.card h5 {
    font-style: italic;
    color: #2d2d30;
    font-weight: bold;
}

.btn {
    padding: 10px 20px;
    background-color: #333;
    color: #f1f1f1;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn:hover,
.btn:focus {
    color: #fff;
    background-color: #2d2d30;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* 隐藏的额外内容样式 */
.extra-content {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 联系表单样式 */
#contact {
    margin-top: 30px;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#contact h3 {
    color: #2d2d30;
    margin-bottom: 20px;
    position: relative;
}

#contact h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: #2d2d30;
}

#contact p {
    color: #555;
    font-size: 1.1rem;
}

.form-control {
    border-radius: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2d2d30;
    box-shadow: 0 0 0 0.2rem rgba(45, 45, 48, 0.25);
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

.btn-dark {
    background-color: #2d2d30;
    color: white;
    border: none;
    padding: 12px 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-dark:hover {
    background-color: #3e3e42;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }
    
    .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .person {
        width: 180px;
        height: 180px;
    }
}

/* 页面切换动画 */
.page-transition {
    animation: fadeIn 0.5s ease;
}

/* 返回顶部按钮 */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #2d2d30;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: #3e3e42;
    transform: translateY(-5px);
}

/* 角色页面背景 */
#band {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 联系信息图标 */
.bi {
    margin-right: 10px;
    font-size: 1.2rem;
}